home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / sspeare.dxr / 00001.ls next >
Encoding:
Text File  |  2001-03-02  |  1.0 KB  |  38 lines

  1. on enterFrame
  2.   global counter1
  3.   repeat with n = 4 to 14
  4.     set the visible of sprite n to 0
  5.   end repeat
  6.   repeat with n = 25 to 35
  7.     set the visible of sprite n to 1
  8.   end repeat
  9.   put counter1 into field "counter1"
  10.   if counter1 <= 9 then
  11.     set the memberNum of sprite 37 to counter1 + 49
  12.   else
  13.     if counter1 <= 99 then
  14.       set the memberNum of sprite 38 to char 1 of field "counter1" + 49
  15.       set the memberNum of sprite 37 to char 2 of field "counter1" + 49
  16.     else
  17.       if counter1 <= 999 then
  18.         set the memberNum of sprite 39 to char 1 of field "counter1" + 49
  19.         set the memberNum of sprite 38 to char 2 of field "counter1" + 49
  20.         set the memberNum of sprite 37 to char 3 of field "counter1" + 49
  21.       else
  22.         if counter1 > 999 then
  23.           set the memberNum of sprite 39 to 49
  24.           set the memberNum of sprite 38 to 49
  25.           set the memberNum of sprite 37 to 49
  26.         end if
  27.       end if
  28.     end if
  29.   end if
  30.   repeat with x = 60 to 78
  31.     handcursor(x)
  32.   end repeat
  33. end
  34.  
  35. on exitFrame
  36.   go(the frame)
  37. end
  38.